<?php
class Location_Comment extends CI_Model{
	public function __construct(){
		parent::__construct();
		$this->load->database();
	}
	
	public function insertComment($comment){
		$this->db->insert('location_comment',$comment);
		return true;
	}
	
	public function getComment($location_id){
		$query = $this->db->get_where('location_comment',array('location_id',$location_id));
		return $query->results();
	}
}